public class SingleTonTest {
    public static void main(String[] args) {
        Instance instance = Instance.INSTANCE;
        Instance instance2 = Instance.INSTANCE;

        System.out.println(instance==instance2);
        System.out.println(instance.hashCode());
        System.out.println(instance2.hashCode());

    }

}

enum Instance {
    INSTANCE;
}

